/**
 * create by young (young2f@outlook.com) on 2020/9/12
 */


'use strict';
import React from 'react';
import {connect} from 'dva/index';
import {
  Button,
  Card,
  Col,
  DatePicker,
  Drawer,
  Dropdown,
  Form,
  Input,
  Menu,
  Popconfirm,
  Row,
  Select,
  Statistic,
  Table, Tabs
} from 'antd';

import styles from '../index.less';
import ViewTitle from '../../components/ViewTitle';
import FormBase from '../../components/Base/FormBase';
import notify from "../../components/NotificationExtra";
import {FormField, ModalView, SearchForm} from 'antd-extra';
import moment from 'moment';
import 'moment/locale/zh-cn';
import ModalSalesOrderDetail from "./modal/ModalSalesOrderDetail";
import ModalPaid from "./modal/ModalPaid";
import {exportExcel} from "../../utils/excelUtils";
import ModalCreateOrEditSalesOrder from "./modal/ModalCreateOrEditSalesOrder";
import Icon from "antd/es/icon";
import ModalStatistics from "./modal/ModalStatistics";
import ModalCreateOrEditSalesReturnOrder from "./modal/ModalCreateOrEditSalesReturnOrder";
import ModalSalesReturnOrderDetail from "./modal/ModalSalesReturnOrderDetail";
import ModalProcureReturnOrderDetail from "../procure/modal/ModalProcureReturnOrderDetail";
import TabsSalesReturnOfGoods from "./tabs/TabsSalesReturnOfGoods";
import TabsSalesReplenishmentOfGoods from "./tabs/TabsSalesReplenishmentOfGoods";

moment.locale('zh-cn');

const _ = require('lodash');
const {Option} = Select;
const table = 'SalesReturnGoodsOrder';
const title = '订单退货';

@Form.create()
@connect(({
            user,
            global,
            customer,
            sales,
            dict,
            material,
            store
          }) => ({...user, ...global, ...dict, ...material, ...customer, ...sales, ...store}))
export default class ReturnOfGoods extends FormBase {
  constructor(props) {
    super(props);
    this.state = {};
  }


  render() {
    return (
      <Form className={styles.content}>
        <Tabs defaultActiveKey={'0'}>
          <Tabs.TabPane tab={'销售退货'} key="0">
            <TabsSalesReturnOfGoods></TabsSalesReturnOfGoods>
          </Tabs.TabPane>
          <Tabs.TabPane tab={'补退货'} key={'1'}>
            <TabsSalesReplenishmentOfGoods></TabsSalesReplenishmentOfGoods>
          </Tabs.TabPane>
        </Tabs>
      </Form>
    );
  }
}


